﻿using System;
using System.ComponentModel.Composition;
using System.Web.Mvc;
using PAMD.Business.Models;
using PAMD.Controllers.Helper;
using PAMD.Database.Services;
using System.Web.Security;

namespace PAMD.Controllers
{
    [Export]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    public class ErrorController : Controller
    {
        public ActionResult Index(string aspxerrorpath = "")
        {
            ViewBag.ErrorPath = aspxerrorpath;
           return View();
        }

        public ActionResult AccessDenied(string aspxerrorpath = "")
        {
            ViewBag.ErrorPath = aspxerrorpath;
            return View();
        }

        public ActionResult InternalError(string aspxerrorpath = "")
        {
            ViewBag.ErrorPath = aspxerrorpath;
            return View();
        }
    }
}